import request from '@/utils/request'
import {getToken} from "../../utils/auth";

export function Diagnosis(data) {
  return request({
    url: '/diagnosis/list',
    method: 'post',
    data: data
  })
}

export function Download(data) {
  return request({
    url: '/diagnosis/download',
    method: 'post',
    data: data,
    responseType: 'blob',
    headers: {
      'Authorization': 'Bearer ' + getToken()
    }
  })
}

